import {Base} from "../models/base.js"

class VirtualPay extends Base{
  constructor(){
    super()
  }

  getMoney(page,callback){
    var params = {
      url: "user/money?page=" + page,
      method: "GET",
      fn: (res) => {
        callback && callback(res)
      }
    }
    this.request(params)
  }

  toPay(orderID, callback) {
    var params = {
      url: "pay/buy?id=" + orderID ,
      method: "POST",
      fn: (res) => {
        callback && callback(res)
      }
    }
    this.request(params)
  }
}

export {VirtualPay}